const PurchaseOrder = () => import('@/modules/orderSynergy/views/purchaseOrder.vue')
const PurchaseOrderDetail = () => import('@/modules/orderSynergy/components/purchaseOrderDetail.vue')
const parentRouter = [
  {
    label: '订单协同',
    path: ''
  }
]
const routes = [
  {
    path: '/orderSynergy/purchaseOrder',
    name: 'PurchaseOrder',
    meta: {
      title: '采购订单',
      parentTitle: parentRouter
    },
    component: PurchaseOrder
  },
  {
    path: '/orderSynergy/purchaseOrder/purchaseOrderDetail',
    name: 'PurchaseOrderDetail',
    meta: {
      title: '采购订单详情',
      parentTitle: [...parentRouter, { label: '采购订单', path: '/orderSynergy/purchaseOrder' }]
    },
    component: PurchaseOrderDetail
  }
]
export default routes
